home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_204 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  539 b   |  24 lines

  1. on(press){
  2.    if(_root.micon._currentframe == 2)
  3.    {
  4.       ┬º┬ºpush(_root);
  5.    }
  6.    else if(_root.micon._currentframe == 1)
  7.    {
  8.       _root.indicount = 100;
  9.       _root.indialogue = "I\'ll just take this paper clip off here.";
  10.       i = 1;
  11.       while(i < 40)
  12.       {
  13.          _root.take = 15;
  14.          _root.sfx.gotoAndStop(3);
  15.          if(_root.inven["box" + i]._currentframe == 10)
  16.          {
  17.             _root.inven["box" + i].gotoAndStop(17);
  18.          }
  19.          gotoAndStop(17);
  20.          i++;
  21.       }
  22.    }
  23. }
  24.